\hypertarget{a00111}{}\section{地址}
\label{a00111}\index{地址@{地址}}


地址  


\subsection*{函数}
\begin{DoxyCompactItemize}
\item 
const char $\ast$ \hyperlink{a00111_gaa1ea22192168bb6baea88feeb20eb601_gaa1ea22192168bb6baea88feeb20eb601}{address\+\_\+get\+\_\+ip} (\hyperlink{a00056_a44e99fab0348ec54cfee119ddd9ceed6_a44e99fab0348ec54cfee119ddd9ceed6}{kaddress\+\_\+t} $\ast$address)
\begin{DoxyCompactList}\small\item\em 取得\+I\+P \end{DoxyCompactList}\item 
int \hyperlink{a00111_ga9acaa00fe11bcecadea350baf9da7172_ga9acaa00fe11bcecadea350baf9da7172}{address\+\_\+get\+\_\+port} (\hyperlink{a00056_a44e99fab0348ec54cfee119ddd9ceed6_a44e99fab0348ec54cfee119ddd9ceed6}{kaddress\+\_\+t} $\ast$address)
\begin{DoxyCompactList}\small\item\em 取得port \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
地址 


\begin{DoxyPre}
地址接口通过knet\_channel\_ref\_get\_local\_address或knet\_channel\_ref\_get\_peer\_address
获取本地或对端的地址，未建立连接的管道也可以获取地址，但获取的地址是无效的.
\end{DoxyPre}
 \begin{DoxySeeAlso}{参见}
\hyperlink{a00113_gaddc78bbbcee3974d351c2c1ec0340e3e_gaddc78bbbcee3974d351c2c1ec0340e3e}{knet\+\_\+channel\+\_\+ref\+\_\+get\+\_\+local\+\_\+address} 

\hyperlink{a00113_gac54b0999f21b2f481f7b8ebd17699655_gac54b0999f21b2f481f7b8ebd17699655}{knet\+\_\+channel\+\_\+ref\+\_\+get\+\_\+peer\+\_\+address} 
\end{DoxySeeAlso}


\subsection{函数说明}
\hypertarget{a00111_gaa1ea22192168bb6baea88feeb20eb601_gaa1ea22192168bb6baea88feeb20eb601}{}\index{地址@{地址}!address\+\_\+get\+\_\+ip@{address\+\_\+get\+\_\+ip}}
\index{address\+\_\+get\+\_\+ip@{address\+\_\+get\+\_\+ip}!地址@{地址}}
\subsubsection[{address\+\_\+get\+\_\+ip}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ address\+\_\+get\+\_\+ip (
\begin{DoxyParamCaption}
\item[{{\bf kaddress\+\_\+t} $\ast$}]{address}
\end{DoxyParamCaption}
)}\label{a00111_gaa1ea22192168bb6baea88feeb20eb601_gaa1ea22192168bb6baea88feeb20eb601}


取得\+I\+P 


\begin{DoxyParams}{参数}
{\em address} & kaddress\+\_\+t实例 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em 有效的指针} & I\+P字符串 \\
\hline
{\em 0} & 管道连接未建立 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00111_ga9acaa00fe11bcecadea350baf9da7172_ga9acaa00fe11bcecadea350baf9da7172}{}\index{地址@{地址}!address\+\_\+get\+\_\+port@{address\+\_\+get\+\_\+port}}
\index{address\+\_\+get\+\_\+port@{address\+\_\+get\+\_\+port}!地址@{地址}}
\subsubsection[{address\+\_\+get\+\_\+port}]{\setlength{\rightskip}{0pt plus 5cm}int address\+\_\+get\+\_\+port (
\begin{DoxyParamCaption}
\item[{{\bf kaddress\+\_\+t} $\ast$}]{address}
\end{DoxyParamCaption}
)}\label{a00111_ga9acaa00fe11bcecadea350baf9da7172_ga9acaa00fe11bcecadea350baf9da7172}


取得port 


\begin{DoxyParams}{参数}
{\em address} & kaddress\+\_\+t实例 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em 有效的端口号} & 端口号 \\
\hline
{\em 0} & 管道连接未建立 \\
\hline
\end{DoxyRetVals}
